def is_balance():
    n = int(input())
    array=[eval(x) for x in input().split()]
    exist=0
    for i in range(n):
        pre_sum=0
        latter_sum=0
        for j in range(0,i+1):
            pre_sum+=array[j]
        for k in range(i+1,n):
            latter_sum+=array[k]
        if pre_sum==latter_sum:
            exist=1
            break
    return exist
def main():
    t = int(input())
    result=[]
    for i in range(t):
        result.append(is_balance())
    for i in range(len(result)):
        if result[i]==0:
            print("No")
        else:
            print("Yes")
main()